#!/bin/bash
source activate tf_gpu
export CUDA_VISIBLE_DEVICES=1
export TF_FORCE_GPU_ALLOW_GROWTH=true
# 创建时间戳
TIMESTAMP=$(date +"%Y%m%d_%H%M%S")


echo "开始训练模型..."

nohup python grid_search.py --params_json /home/sunjun/ssd/dpp4/attention_grid_search_params.json \
    > $(date +"%Y%m%d_%H%M%S").log 2>&1 &

echo "
python evaluate.py \
  --model_path /home/sunjun/ssd/dpp4/grid_search_outputs-test1/attention/run_1_att_dense_units_64_att_learning_rate_0p001_att_lstm_units_32/final_model_trained_on_all_data/final_attention.h5 \
  --model_type attention \
  --validation_csv /home/sunjun/ssd/dpp4/DPP-IV_test_20.csv \
  --model_run_dir /home/sunjun/ssd/dpp4/grid_search_outputs-test1/attention/run_1_att_dense_units_64_att_learning_rate_0p001_att_lstm_units_32 \
  --output_dir evaluation_results/model_eval_1

python /home/sunjun/ssd/dpp4/predict.py \
    --model_path /home/sunjun/ssd/dpp4/finalmodel/attention/run_1_att_dense_units_64_att_learning_rate_0p001_att_lstm_units_32/final_model_trained_on_all_data/final_attention.h5 \
    --model_type attention \
    --input_csv /home/sunjun/ssd/dpp4/all_tripeptides.csv \
    --output_csv /home/sunjun/ssd/dpp4/data/all_tripeptides_predicted.csv \
    --model_run_dir /home/sunjun/ssd/dpp4/finalmodel/attention/run_1_att_dense_units_64_att_learning_rate_0p001_att_lstm_units_32
  "